const { uploadDir } = require('../../config')

const koaBodyConfig = {
    multippart: true,
    parsedMethods: ['POST','PUT','PATCH','HEAD','DEETE'],
    formidable: {
        uploadDir,
        keepExtensions: true,
        maxFieldsSize: 2 * 1024 * 1024,
        onFileBegin: (name,file) => {}
    }
}

module.exports = koaBodyConfig;